  <tr>
    <td>
	<table width="100%"  border="0" cellpadding="10" cellspacing="2">
	<form action="index.php?action=done" method="post">
      <tr bgcolor="#009999">
        <td colspan="3">Suporte IT  | Abrir Ticket </td>
      </tr>
	  <?php if(!isset($print_Var)) { ?> 
      <tr>
        <td width="25%" rowspan="3" valign="top" bgcolor="#F2F2F2"> <p><b>&lt;&gt;</b><br>
            Tipifique e descreva a situação o mais promonorizadamente possivel. </p>
          <p><?php if (isset($Msg->SAVE_CLIENT)) {print $Msg->SAVE_CLIENT;} ?>
            Aberto por:
            <?php echo $_SESSION['UtAD'];?>
</p>
          <p>A:
            <?php echo date("Y-m-d H:i:s");?>
</p>
          <p><strong>Data da ocorrência</strong>:<br>
            <input name="date_occur" type="text" id="date_occur2"
		  onFocus="this.select();lcs(this)" 
		  onClick="event.cancelBubble=true;this.select();lcs(this)" 
		  value="<?php if (isset($_POST['date_occur'])) {
		  print $_POST['date_occur']; } else { print "AAAAMMDD";
		  } ?>" size="10" />
            <input name="time_occur" type="text" id="time_occur2" value="00:00" size="2" maxlength="5">
</p>
          <p>(apenas se diferente)           </p></td>
        <td colspan="2" bgcolor="#F2F2F2">
	<table width="100%" border="0" cellpadding="10" cellspacing="1">
      <tr bgcolor="#FFFFFF">
        <td width="10%" rowspan="2" valign="top">Tipificação</td>
        <td>área </td>
        <td><select name="Area" onclick="javascript:window.refresh();">
          <?php 
				$CType = "SELECT * FROM it_ticket_types WHERE level = '0'";

				$Type = $GLOBALS['CONN']->db_array($CType);
				for ($t = 1; $t <= $Type[0]; $t++) { ?>
          <option value = "<?php echo $Type[$t]['ref'];?>">
          <?php echo $Type[$t]['name'];?>
          </option>
          <?php } ?>
        </select></td>
        </tr>
      <tr>
        <td width="10%" bgcolor="#FFFFFF">Sub-área</td>
        <td width="70%" bgcolor="#FFFFFF"><p>
          <select name="SubArea">
                <?php 
				$CType = "SELECT * FROM it_ticket_types WHERE level = '{$_POST['Area']}'";
				$Type = $GLOBALS['CONN']->db_array($CType);
				for ($t = 1; $t <= $Type[0]; $t++) { ?>
                <option value = "<?php echo $Type[$t]['ref'];?>">
                <?php echo $Type[$t]['name'];?>
                </option>
                <?php } ?>
          </select>
        </p></td>
        </tr>
      <tr bgcolor="#FFFFFF">
        <td valign="top">Descrição</td>
        <td colspan="2" valign="top"><p>
            <textarea name="Description" cols="80" rows="8" id="Description"></textarea>
        </p>          </td>
        </tr>
      <tr>
        <td valign="top">&nbsp;</td>
        <td colspan="2" valign="top"><input name="SaveTicket" type="submit" id="SaveTicket2" value="Salvar"></td>
      </tr>
    </table>
	<?php } ?>
	</td>
	  </tr>
	  </form>
    </table>
	</td>
  </tr>